import request from "@/utils/request";

//查询病人列表
export function listPatient(query) {
  return request({
    url: "/system/patient/list",
    method: "get",
    params: query,
  });
}
///dev-api/system/patient/list/info 顾客管理查询病人列表
export function listPatientAll(query) {
  return request({
    url: "/system/patient/list/info",
    method: "get",
    params: query,
  });
}
//查询就诊列表
export function listVisit(query) {
  return request({
    url: "/system/visit/list",
    method: "get",
    params: query,
  });
}

//根据病人id查询病人所有照片
export function listPhotos(query) {
  return request({
    url: "/system/photo/list",
    method: "get",
    params: query,
  });
}

//删除就诊记录
export function delVisit(visitIds) {
  return request({
    url: "/system/visit/" + visitIds,
    method: "delete",
  });
}

//修改就诊记录
export function updateVisit(data) {
  return request({
    url: "/system/visit",
    method: "put",
    data: data,
  });
}
